package com.aizuda.boot.modules.auth.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Schema
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "third_user_auth")
public class ThirdUserAuth {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description="主键")
    private Long id;

    /**
     * 系统用户ID
     */
    @TableField(value = "user_id")
    @Schema(description="系统用户ID")
    private Long userId;

    /**
     * 社会化用户ID（数据库主键）
     */
    @TableField(value = "third_user_id")
    @Schema(description="社会化用户ID（数据库主键）")
    private Long thirdUserId;

    public static final String COL_ID = "id";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_THIRD_USER_ID = "third_user_id";
}
